import FormEditTestFlowFirstParty from '@/pages/generated/formEditTestFlowFirstParty.vue';
import FormEditTestFlowSecondParty from '@/pages/generated/formEditTestFlowSecondParty.vue';
import FormEditTestFlowProduct from '@/pages/generated/formEditTestFlowProduct.vue';
import FormEditTeacher from '@/pages/generated/formEditTeacher.vue';
import FormEditStudent from '@/pages/generated/formEditStudent.vue';
import FormEditKnowledge from '@/pages/generated/formEditKnowledge.vue';
import FormEditPaper from '@/pages/generated/formEditPaper.vue';
import FormSetExercise from '@/pages/generated/formSetExercise.vue';
import FormEditExercise from '@/pages/generated/formEditExercise.vue';
import FormEditVideoCourse from '@/pages/generated/formEditVideoCourse.vue';
import FormEditVideo from '@/pages/generated/formEditVideo.vue';
import FormEditCourseSection from '@/pages/generated/formEditCourseSection.vue';
import FormSetSectionPaper from '@/pages/generated/formSetSectionPaper.vue';
import FormAddClass from '@/pages/generated/formAddClass.vue';
import FormSetClassCourse from '@/pages/generated/formSetClassCourse.vue';
import FormSetClassStudent from '@/pages/generated/formSetClassStudent.vue';
import FormUpdateStudentStatus from '@/pages/generated/formUpdateStudentStatus.vue';
import FormAddClassAI from '@/pages/aiform/formAddClassAI.vue';

const dialogRouterComponent = {
  formEditTestFlowFirstParty: FormEditTestFlowFirstParty,
  formEditTestFlowSecondParty: FormEditTestFlowSecondParty,
  formEditTestFlowProduct: FormEditTestFlowProduct,
  formEditTeacher: FormEditTeacher,
  formEditStudent: FormEditStudent,
  formEditKnowledge: FormEditKnowledge,
  formEditPaper: FormEditPaper,
  formSetExercise: FormSetExercise,
  formEditExercise: FormEditExercise,
  formEditVideoCourse: FormEditVideoCourse,
  formEditVideo: FormEditVideo,
  formEditCourseSection: FormEditCourseSection,
  formSetSectionPaper: FormSetSectionPaper,
  formAddClass: FormAddClass,
  formSetClassCourse: FormSetClassCourse,
  formSetClassStudent: FormSetClassStudent,
  formUpdateStudentStatus: FormUpdateStudentStatus,
  formAddClassAI: FormAddClassAI,
};

export const getRouteComponent = (component: string) => {
  if (component == null || component === '') {
    return null;
  }
  return dialogRouterComponent[component];
};
